﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Configuration;

namespace Windvoice.Library
{
    public static class TextWriterHelper
    {
        private static StreamWriter File = new StreamWriter(System.Configuration.ConfigurationSettings.AppSettings["effeciencyFile"], false, Encoding.UTF8) { AutoFlush = true };

        public static void WriteLine(string position,DateTime time)
        {
            File.WriteLine(String.Format("{0}\t{1}", position, (time - new DateTime(1970, 1, 1)).TotalMilliseconds));
        }
    }
}
